<?php
/**
 * CreateTime: 2024/1/12 16:59
 * User:LinQ
 */

namespace App\Models\Logs;

use App\Models\BasicModel;

class LoginLogModel extends BasicModel
{
    protected $table = 'login_logs';

    protected $primaryKey = 'login_log_id';

    protected $fillable = [
        'login_log_id',
        'owner_id',
        'type',
        'login_ip',
        'login_address',
        'user_agent',
        'created_at',
        'updated_at',
    ];

    protected $casts = [
        'operate_log_id' => 'integer',
        'owner_id' => 'integer',
        'type' => 'integer',
        'login_ip' => 'string',
        'login_address' => 'string',
        'created_at' => 'string',
        'updated_at' => 'string',
    ];

    protected $hidden = [
        'created_at',
        'updated_at',
    ];
}